<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<link type="text/css" rel="stylesheet" href="css/dth.css" />

	<style>
</style>

</h:head>

<h:body>

	<h:panelGroup id="dlgchange">
		<h:inputHidden value="#{accountBean.id}"></h:inputHidden>
		<div class="feild-input">
			<h:outputLabel value="Current Password"></h:outputLabel>
			<p:password value="#{accountBean.old}"></p:password>
		</div>
		<div class="feild-input">
			<h:outputLabel value="New Password"></h:outputLabel>
			<p:password value="#{accountBean.password}" feedback="true" promptLabel="Input your new password"></p:password>
		</div>
		<div class="feild-input">
			<h:outputLabel value="Re-Password"></h:outputLabel>
			<p:password value="#{accountBean.rePassword}"></p:password>
		</div>
		<div class="feild-action"
			style="margin-top: 10px !important; margin-bottom: 10px !important;">
			<p:growl id="growl" showDetail="true" sticky="false" />
			<p:commandButton id="ok_btn" value="#{msg['btn_ok']}" oncomplete="dlg.hide()" update="growl"
				action="#{accountBean.update}" ></p:commandButton>

			<p:commandButton value="#{msg['btn_cancel']}" oncomplete="dlg.hide()" update=":growl"></p:commandButton>
		</div>
	</h:panelGroup>


</h:body>
</html>